package com.dynamic.idea.quick.develop.plugin.entity.base02;

import com.dynamic.idea.quick.develop.plugin.entity.base02.model.ImportStruct;
import com.dynamic.idea.quick.develop.plugin.entity.base02.model.RequestParamStruct;

import java.io.Serializable;
import java.util.List;

/**
 * 通用的方法结构
 */
public class GeneralMethodStruct implements Serializable {

    /**
     * 所属的类结构
     */
    private GeneralClassStruct belongClassStruct;

    /**
     * 方法名
     */
    private String name;

    /**
     * 请求参数列表
     */
    private List<RequestParamStruct> requestParamStructList;

    /**
     * 返回结构
     */
    private ImportStruct returnImportStruct;

    /**
     * 1-查询：2-增加;3-修改;4-更新;5-其他
     */
    private Integer type;

    /**
     * body体：java代码或MapperXML的SQL
     */
    private String body;

    // get/set 方法


    public GeneralClassStruct getBelongClassStruct() {
        return belongClassStruct;
    }

    public void setBelongClassStruct(GeneralClassStruct belongClassStruct) {
        this.belongClassStruct = belongClassStruct;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<RequestParamStruct> getRequestParamStructList() {
        return requestParamStructList;
    }

    public void setRequestParamStructList(List<RequestParamStruct> requestParamStructList) {
        this.requestParamStructList = requestParamStructList;
    }

    public ImportStruct getReturnImportStruct() {
        return returnImportStruct;
    }

    public void setReturnImportStruct(ImportStruct returnImportStruct) {
        this.returnImportStruct = returnImportStruct;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
